{% extends "generalTemplate.html" %}
{% block queryScript %}

	<script src="/bvapp/static/js/bioventurist_listPages.js" type="text/javascript"></script>

	<script src="/bvapp/static/js/bioventurist.js" type="text/javascript"></script>
	<script src="/bvapp/static/js/jquery.alerts/jquery.alerts.js" type="text/javascript"></script>
	<script type="text/javascript" src="/static/js/json.js"></script>
	<link href="/bvapp/static/js/jquery.alerts/jquery.alerts.css" rel="stylesheet" type="text/css" media="screen" />

	<script language="javascript" type="text/javascript">



		function load_info() {

		document.title = {% block documentTitle %}{% endblock %};
		$('#title').text(document.title);
		var url = "http://{{ domain_used }}/api/service/mqlread";
		var queryParameters = {% block queryParameters %}{% endblock %}; 
		var q  = '	{"query":[{'+queryParameters+'}]}';
		var bl = new Boolean(true);
		
		var prefix = {% block prefix %}{% endblock %};
		var useSpecificPrefix = {% block useSpecificPrefix %}{% endblock %};
		var queries = letterArray(queryParameters, prefix, useSpecificPrefix);
		//this fen. loads the letter a on initial load....
		//generalLoadQuery(queries[0], url, bl, prefix,useSpecificPrefix,'{{ bioventurist_domain }}');
		loadLetter(0,prefix,useSpecificPrefix);	
		var suggestNewText = {% block suggestNewText %}{% endblock %};
		var qType = {% block qType %}{% endblock %};
		var createType = {% block createType %}{% endblock %}
		var searchText = {% block searchText %}{% endblock %}
		createListSearch(suggestNewText,qType,createType,prefix,searchText)
		var titleName = getTitleName(prefix);
		
		var st = '<option>Sort '+titleName+' by:</option>';
		$("#list_sort").append(st);
		var ft = '<option>Filter '+titleName+' by:</option>';
		$("#filtProps").append(ft);
		
		sortList(queryParameters, prefix, useSpecificPrefix);
		getFiltProps(prefix, useSpecificPrefix);
		Array.prototype.unique = function () { 
		var r = []; 
		o:for(var i = 0, n = this.length; i < n; i++) {
 		for(var x = 0, y = r.length; x < y; x++) { 
			if(r[x]==this[i]) { 
				continue o;
 			} 
		} 
		r[r.length] = this[i]; 
	} 
	return r; 
	}	

		}

		var queries = [];
		var sortQueries = [];		
		var titles = [];
	</script>

		

{% endblock %}

{% block container %}



<div id="main_col2">




<div class="cornerBox_grey">
<div class="corner_grey TL"></div><div class="corner_grey TR"></div>
<div class="corner_grey BL"></div><div class="corner_grey BR"></div>
<div class="cornerBoxInner">
<p>

	<h1>Explore Bioventurist</h1>
	
</p></div> </div> <!-- cornerbox -->
<h3>
		<a href="/companies/" title="Companies">Companies</a> |
		<a href="/diseases/" title="Diseases">Diseases</a> |
		<a href="/technologies/" title="Technologies">Technologies</a>
</h3>


<!-- spacer--> <div class="spacer">&nbsp;</div> <!-- spacer-->



	<div id="left_col">

		<INPUT type="text" id="searchSuggestList"></INPUT>

		<br></br>

		

		<div id="alphabet_list">
		</div>
		
		<div id="listandsort">
		<select id="list_sort">
		</select>
		<br><br>		
		<select id="filtProps">
		</select>
		</div>
		
		</div>
	<div id="sort_title"></div>	
	<div id="itemList">	

		<div id="itemListCol1">

					<ul id="list1">
					</ul>
			</div>
			<div id="itemListCol2">
					<ul id="list2">

						

					</ul>
			</div>
			<div id="itemListCol3">
					<ul id="list3">

												

					</ul>
		</div>

	</div>	
</div>
{% endblock %}




